<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<!--Hien thi banner!<img src="< ?= $this->baseUrl?>images/Banner.jpg" align="left" width="100%"/>-->
</table><?php
$arrPermission = $_SESSION['arrStaffPermission'];
$arrMenu = $this->arrMenu;
//$sliidvisit = $this->_request->getParam('sliid','');
$baseUrl = Efy_Init_Config::_getCurrentHttpAndHost();
?>
<!--He thong Menu ngang-->
<table width="100%" cellpadding="0" cellspacing="0" class="top_menu_table">
	<tr>
    <td>
    	<ul align="center">
    	<li align="center" style="font-weight:normal; list-style:none; width:180px;text-align:center; " ><b><?php echo Efy_Publib_Library::_generate_day_of_week(1); ?> </b></li>
    	<?php 
		$html = '';
		for($i=0;$i<sizeof($arrMenu);$i++){
			if(($arrMenu[$i][C_POSITION]=='2')&&($arrMenu[$i][C_LEVEL]=='0')&&(($arrMenu[$i][C_PUBLIC_VIEW])||(strrpos('EFY'.$arrMenu[$i][FK_VIEW_STAFF_ID_LIST],$_SESSION['staff_id'])))){
				//Lay duong dan
				if($arrMenu[$i][C_URL]==''){
					$urlRe = $baseUrl . 'web/getarticle/index/?menuid='.$arrMenu[$i][PK_WEB_MENU].'&parent_menuid='.$arrMenu[$i][FK_WEB_MENU].'&articleid='.$arrMenu[$i][FK_WEB_ARTICLE];
				}else{
					if((substr_count($arrMenu[$i][C_URL],'http://')>0)||($arrMenu[$i][C_URL]=='#')){
						$urlRe = $arrMenu[$i][C_URL];
					}else{
						$urlRe = $baseUrl . $arrMenu[$i][C_URL];
						if(substr_count($urlRe,'?')>0){
								$urlRe = $urlRe.'&menuid='.$arrMenu[$i][PK_WEB_MENU].'&parent_menuid='.$arrMenu[$i][FK_WEB_MENU].'&articleid='.$arrMenu[$i][FK_WEB_ARTICLE];
						}else{
								$urlRe = $urlRe.'?menuid='.$arrMenu[$i][PK_WEB_MENU].'&parent_menuid='.$arrMenu[$i][FK_WEB_MENU].'&articleid='.$arrMenu[$i][FK_WEB_ARTICLE];
						}
					}		
				}
				//Lay id cua li phuc vu viec bat topmenu
				//$sliID = 'li'.$arrMenu[$i][C_ORDER_LEVER1].'_'.$arrMenu[$i][C_ORDER_LEVER2].'_'.$arrMenu[$i][C_ORDER_LEVER3];
				$sliID = 'li'.$arrMenu[$i][C_ORDER_LEVER1];	
				if(substr_count($urlRe,'?')>0){
						$urlRe = $urlRe.'&sliid='.$sliID.'&sleftmenu=mn_0_0_0';
				}else{
						$urlRe = $urlRe.'?sliid='.$sliID.'&sleftmenu=mn_0_0_0';
				}
				$iOpenNewWin = 0;
				if($arrMenu[$i][C_WINDOWS_OPEN]=='1'){
					$iOpenNewWin = 3;
				}
				$urlRe = "javaScript:goto_url('".$urlRe."',".$iOpenNewWin.")";	
				$html = $html.'<li id ="'.$sliID.'" align="left" style="cursor:pointer;" onclick="'.$urlRe.'"><span>'.$arrMenu[$i][C_NAME].'</span></li>';
			}
		}
		echo $html;
		?>	
        </ul>
		</td>
        </tr>
</table>
<script type="text/javascript">
/* Các hàm định nghĩa cho menu con*/
function otab(child_id){
	document.write('<table class = "pushdown_menu_table"' + 'id="' + child_id +'" border="0" cellspacing="0" cellpadding="0">');
}
function submn(submn_label,submn_text){
	document.write('<tr><td  onclick="window.location.href=\'<?=$this->baseUrl;?>'+submn_label+'/\'" onmouseover="this.className=\'hoverClass\'" onmouseout="this.className=\'outverClass\'" ><img src="<?= $this->baseUrl?>images/anh_menu_level_2.gif"/>'+'  '+submn_text+'</td></tr>');
}//
function ctab(){
	document.write('<\/table>');
}<?php 
$sliidvisit = $this->sliidvisit; ?>
try {
	document.getElementById('<?=$sliidvisit?>').className="visited";
}catch(e){;}	
	
 function href(url){
 	window.location.href = url;
 } 
</script>
